import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# data = pd.Series(np.random.randn(1000),index=np.arange(1000))
# data = data.cumsum()
# data.plot()
# plt.show()

# data_02 = pd.DataFrame(
#     np.random.randn(1000,4),
#     index = np.arange(1000),
#     columns= list('abcd')
# )
# data_02 = data_02.cumsum()
# # data_dat = pd.read_csv('D:\matlab_file\广域绘图\E1-Ex_resize_NormalziedField.dat')
# data_02.plot()
# plt.show()

# 绘制散点图scatter
data_02 = pd.DataFrame(
    np.random.randn(1000,4),
    index = np.arange(1000),
    columns= list('abcd')
)
data_02 = data_02.cumsum()
ax = data_02.plot.scatter(x='a',y='b',color='DarkBlue',label='Class1')
data_02.plot.scatter(x='a',y='c',color='Red',label='Class2',ax=ax)
plt.show()